/*
 * @Author: Blaze
 * @Date: 2020-11-12 13:49:09
 * @LastEditors: Blaze
 * @LastEditTime: 2020-11-19 14:21:22
 * @Description: 
 */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import "video.js/dist/video-js.css";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import VueAMap from "vue-amap";
import axios from "axios";
import VueAliplayerV2 from "vue-aliplayer-v2";
import ECharts from 'vue-echarts'
import 'echarts/lib/chart/bar'

Vue.component('chart', ECharts)
Vue.use(VueAliplayerV2);
Vue.prototype.$http = axios;
axios.defaults.baseURL = process.env.API_HOST;
Vue.use(VueAMap);
Vue.use(ElementUI);
Vue.config.productionTip = false;
VueAMap.initAMapApiLoader({
  key: "1cdb018d74fd52b966f0d469d6676b76",
  plugin: [
    "AMap.Autocomplete",
    "AMap.PlaceSearch",
    "AMap.Scale",
    "AMap.OverView",
    "AMap.ToolBar",
    "AMap.MapType",
    "AMap.PolyEditor",
    "AMap.CircleEditor",
    "AMap.MouseTool",
    "Geocoder"
  ],
  // 默认高德 sdk 版本为 1.4.4
  v: "1.4.4"
});

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
